
  $(function() {
    var galleries = $('.ad-gallery').adGallery({	
	loader_image: './Images/loader.gif',
	height: 600,
	effect: 'fade', 
	slideshow: {
		enable: true,
		autostart: true,
		speed: 3000,
		start_label: 'Start',
		stop_label: 'Stop',
		// Should the slideshow stop if the user scrolls the thumb list?
		stop_on_scroll: true, 
		// Wrap around the countdown
		countdown_prefix: '[', 
		countdown_sufix: ']'
	}
	});
  });


      $(document).ready(function() {
        positionFooter();
        
        $(window)
          .scroll(positionFooter)
          .resize(positionFooter);
        
        function positionFooter() {
          var docHeight = $(document.body).height() - $("#sticky-footer-push").height();
          if(docHeight < $(window).height()){
            var diff = $(window).height() - docHeight;
            if (!$("#sticky-footer-push").length > 0) {
              $("#general_footer").before('<div id="sticky-footer-push"></div>');
            }
            $("#sticky-footer-push").height(diff);
          } 
        }
      });
